package com.ideal.frame.node.enumeration;

/**
 * @description:
 * @author: xuyang
 * @date: 2021/8/31 16:31
 */
public enum NodeStatus {
    Active("连接正常", 1, true),
    InActive("连接已断开", 0, false);

    /**
     * 枚举的展示信息
     */
    private String text;
    /**
     * 枚举的真实值
     */
    private int value;
    /**
     * 枚举的布尔值
     */
    private boolean boolValue;

    private NodeStatus(String text, int value, boolean boolValue) {
        this.text = text;
        this.value = value;
        this.boolValue = boolValue;
    }

    public String getText() {
        return text;
    }

    public int getValue() {
        return value;
    }

    public boolean getBoolValue() {
        return boolValue;
    }
}
